package com.apis.web;

public abstract class Response {
	protected int state;
	protected String metaData;
	protected String data;
	protected String request;
	protected String reason;
	protected Throwable exception;
	
	public Response() {
		super();
	}

	public abstract String toString();
	
	/**
	 * @return the metadata
	 */
	public String getMetaData() {
		return metaData;
	}

	/**
	 * @param metadata
	 *            the metaData to set
	 */
	public void setMetaData(String metaData) {
		this.metaData = metaData;
	}

	/**
	 * @return the data
	 */
	public String getData() {
		return data;
	}

	/**
	 * @param data
	 *            the data to set
	 */
	public void setData(String data) {
		this.data = data;
	}

	/**
	 * @return the request
	 */
	public String getRequest() {
		return request;
	}

	/**
	 * @param request
	 *            the request to set
	 */
	public void setRequest(String request) {
		this.request = request;
	}

	/**
	 * @return the reason
	 */
	public String getReason() {
		return reason;
	}

	/**
	 * @param reason
	 *            the reason to set
	 */
	public void setReason(String reason) {
		this.reason = reason;
	}

	/**
	 * @return the exception
	 */
	public Throwable getException() {
		return exception;
	}

	/**
	 * @param exception
	 *            the exception to set
	 */
	public void setException(Throwable exception) {
		this.exception = exception;
	}

	/**
	 * @return the state 1--success, 0--failed
	 */
	public int getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set 1--success, 0--failed
	 */
	public void setState(int state) {
		this.state = state;
	}
}
